//
//  LoginChangeView.m
//  HappyBug
//
//  Created by liulei on 2018/10/21.
//  Copyright © 2018年 www.hc.com.cn. All rights reserved.
//

#import "LoginChangeView.h"

@implementation LoginChangeView{
    CGRect innerframe;
    
    
}

-(instancetype)initWithFrame:(CGRect)frame{
    self=[super initWithFrame:frame];
    if(self){
        innerframe=frame;
        [self initview];
    }
    return self;
}
-(void)initview{
    
    
    //change
    self.changeBt=[[UIButton alloc]init];
    self.changeBt.frame =CGRectMake(30,0, self.frame.size.width-60, 30);
    self.changeBt.font=[UIFont systemFontOfSize:12];
    [self.changeBt setTitle:@"--切换登录方式--" forState:UIControlStateNormal];
    [self  addSubview:self.changeBt];
    
    
    UIImageView *qqimageview=[[UIImageView alloc]init];
    UIImage *qqimage =[UIImage imageNamed:@"img1"];
    [qqimageview sizeToFit];
    qqimageview.frame=CGRectMake(self.frame.size.width-160, _changeBt.frame.size.height+5,40, 40);
    qqimageview.contentMode=UIViewContentModeScaleAspectFill;
    [qqimageview setImage:qqimage];
    [self addSubview:qqimageview];
    
    
    UIImageView *wximageview=[[UIImageView alloc]init];
    [wximageview sizeToFit];
    
    UIImage *wximage =[UIImage imageNamed:@"img0"];
    wximageview.frame=CGRectMake(qqimageview.frame.origin.x+qqimageview.frame.size.width+2,_changeBt.frame.size.height+5, 40, 40);
    wximageview.contentMode=UIViewContentModeScaleAspectFill;
    
    [wximageview setImage:wximage];
    [self addSubview:wximageview];
    
    
    
}
@end
